From df706e41ceb854d7cc44bc89a95b36cd2c8593ed Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Thu, 1 Mar 2007 10:32:52 +0000 Subject: [PATCH] xen: Last minute rename of RCU domain get/put functions: find_domain_rcu_lock -> rcu_lock_domain_by_id domain_rcu_unlock -> rcu_unlock_domain Signed-off-by: Keir Fraser --- xen/common/domain.c | 2 +- xen/include/xen/sched.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/xen/common/domain.c b/xen/common/domain.c index d1ea9a2148..551b9f8e23 100644 --- a/xen/common/domain.c +++ b/xen/common/domain.c @@ -236,7 +236,7 @@ struct domain *get_domain_by_id(domid_t dom) } -struct domain *find_domain_rcu_lock(domid_t dom) +struct domain *rcu_lock_domain_by_id(domid_t dom) { struct domain *d; diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h index 61d228a8a6..6fb03a807f 100644 --- a/xen/include/xen/sched.h +++ b/xen/include/xen/sched.h @@ -270,16 +270,16 @@ int construct_dom0( char *cmdline); /* - * find_domain_rcu_lock() is more efficient than get_domain_by_id(). + * rcu_lock_domain_by_id() is more efficient than get_domain_by_id(). * This is the preferred function if the returned domain reference * is short lived, but it cannot be used if the domain reference needs * to be kept beyond the current scope (e.g., across a softirq). - * The returned domain reference must be discarded using domain_rcu_unlock(). + * The returned domain reference must be discarded using rcu_unlock_domain(). */ -struct domain *find_domain_rcu_lock(domid_t dom); +struct domain *rcu_lock_domain_by_id(domid_t dom); -/* Finish a RCU critical region started by find_domain_rcu_lock(). */ -static inline void domain_rcu_unlock(struct domain *d) +/* Finish a RCU critical region started by rcu_lock_domain_by_id(). */ +static inline void rcu_unlock_domain(struct domain *d) { rcu_read_unlock(&domlist_read_lock); } -- 2.30.2